import http from '@/utils/httpRequest'
import request from '@/utils/httpRequest'

export default {
    // 带条件分页查询酒店预约信息
    getHotelBookList(current,limit,searchObj) {
        return request({
            url: http.adornUrl(`/hotel/hotelBook/findPageHotelBook/${current}/${limit}`),
            method: 'post',
            data: http.adornData(searchObj, false)
        })
    },
     // 删除酒店预约信息
     deleteHotelBook(id) {
        return request ({
            url: http.adornUrl(`/hotel/hotelBook/${id}`),
            method: 'delete'
        })
    },
      // 批量删除酒店预约信息
      batchRemoveHotelBook(idList) {
        return request({
            url: http.adornUrl(`/hotel/hotelBook/batchRemove`),
            method: 'delete',
            data: http.adornData(idList, false)
        })
    },
    // 添加酒店预约信息
    saveHotelBook(hotelBook) {
        return request ({
            url: http.adornUrl(`/hotel/hotelBook/saveHotelBook`),
            method: 'post',
            data: http.adornData(hotelBook, false)
        })
    },
     // 修改酒店预约信息
     updateHotelBook(hotelBook) {
        return request ({
            url: http.adornUrl(`/hotel/hotelBook/updateHotelBook`),
            method: 'post',
            data: http.adornData(hotelBook, false)
        })
    },
     // 酒店预约信息根据id查询
     getHotelBook(id) {
        return request ({
            url: http.adornUrl(`/hotel/hotelBook/getHotelBook/${id}`),
            method: 'get'
        })
    },
}